/**
 *  Desc:   任务管理
 *  Author: 刘玉峰
 *  Date:   2021-06-09 10:14
 */

 import request from "@/utils/request";
 import { removeEmptyKeys } from "@/utils/utils";
 
 
 // 
export async function loadTask() {
  return request(`/api/admin/taskList`);
}

export async function loadTaskDetail(id){
  return request.get(`/api/admin/taskDetail/${id}`); 
}

export async function addTask(params) {
  params = removeEmptyKeys(params);
  return request.post(`/api/admin/addTask`, {
    params
  });
}

export async function deleteTask(id){
  return request.get(`/api/admin/deleteTask/${id}`); 
}

export async function getManagerList() {
  return request.get(`/api/admin/getManagerList`);
}

export async function getWplList() {
  return request.get(`/api/admin/getWplList`);
}
 